import Vue from 'vue'
import Router from 'vue-router'

import home from '@/views/home/home'
import homeSearch from '@/views/home/homeSearch'
import source from '@/views/source/source'
import sourceDetail from '@/views/source/sourceDetail'
import sto from '@/views/sto/sto'
import stoDetail from '@/views/sto/stoDetail'
import stoBuy from '@/views/sto/stoBuy'
import stoFinish from '@/views/sto/stoFinish'
import message from '@/views/message/message'
import messageDetail from '@/views/message/messageDetail'
import messageHistoryGetOut from '@/views/message/messageHistoryGetOut'
import messageHistoryGetOutDetail from '@/views/message/messageHistoryGetOutDetail'
import collect from '@/views/collect/collect'
import orderManagement from '@/views/orderManagement/orderManagement'
import orderDetail from '@/views/orderManagement/orderDetail'
import orderSearch from '@/views/orderManagement/orderSearch'
import houseEarning from '@/views/houseEarning/houseEarning'
import houseEarningDetail from '@/views/houseEarning/houseEarningDetail'
import account from '@/views/account/account'
import accountDetail from '@/views/account/accountDetail'
import accountGetOutMoney from '@/views/account/accountGetOutMoney'
import accountSelect from '@/views/account/accountSelect'
import scan from '@/views/scan/scan'
import fastSelect from '@/views/fastAccount/fastSelect'
import fastGetMoney from '@/views/fastAccount/fastGetMoney/fastGetMoney'
import fastOutMoney from '@/views/fastAccount/fastOutMoney/fastOutMoney'
import rebate from '@/views/rebate/rebate'
import setting from '@/views/setting/setting'
import contactUs from '@/views/setting/contactUs'
import login from '@/views/loginAndRegister/login'
import register from '@/views/loginAndRegister/register'
import safetyCenter from '@/views/safetyCenter/safetyCenter'
import safetyVerificationCode from '@/views/safetyCenter/safetyVerificationCode'
import phoneCheck from '@/views/safetyCenter/phone/phoneCheck'
import phoneBinding from '@/views/safetyCenter/phone/phoneBinding'
import phoneUnbind from '@/views/safetyCenter/phone/phoneUnbind'
import emailCheck from '@/views/safetyCenter/email/emailCheck'
import emailUnbind from '@/views/safetyCenter/email/emailUnbind'
import emailBinding from '@/views/safetyCenter/email/emailBinding'
import authentication from '@/views/safetyCenter/authentication/authentication'
import changeDealPassword from '@/views/safetyCenter/changeDealPassword/changeDealPassword'
import changePassword from '@/views/safetyCenter/changePassword/changePassword'
import changeSetPassword from '@/views/safetyCenter/changePassword/changeSetPassword'
import c2c from '@/views/c2c/c2c'
import activity from '@/views/activity/activity'
import activityItem from '@/views/activity/activityItem'
import order from '@/views/activity/order'
import congratulations from '@/views/activity/congratulations'
import details from '@/views/activity/details'
import makenew from '@/views/activity/makenew'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'home',
            component: home,
            meta: {
                title: '首页',
                navbarShow: true,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/home',
            name: 'home',
            component: home,
            meta: {
                title: '首页',
                navbarShow: true,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/homeSearch',
            name: 'homeSearch',
            component: homeSearch,
            meta: {
                title: '首页搜索',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/source',
            name: 'source',
            component: source,
            meta: {
                title: '房源筛选',
                navbarShow: true,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/sourceDetail',
            name: 'sourceDetail',
            component: sourceDetail,
            meta: {
                title: '房源详情',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/sto',
            name: 'sto',
            component: sto,
            meta: {
                title: 'sto',
                navbarShow: true,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/stoDetail',
            name: 'stoDetail',
            component: stoDetail,
            meta: {
                title: 'sto详情',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/stoBuy',
            name: 'stoBuy',
            component: stoBuy,
            meta: {
                title: 'sto交易页',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/stoFinish',
            name: 'stoFinish',
            component: stoFinish,
            meta: {
                title: 'sto交易结束',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/message',
            name: 'message',
            component: message,
            meta: {
                title: '消息中心',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/messageDetail',
            name: 'messageDetail',
            component: messageDetail,
            meta: {
                title: '官方公告',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/messageHistoryGetOut',
            name: 'messageHistoryGetOut',
            component: messageHistoryGetOut,
            meta: {
                title: '充提币历史记录',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/messageHistoryGetOutDetail',
            name: 'messageHistoryGetOutDetail',
            component: messageHistoryGetOutDetail,
            meta: {
                title: '充提币历史记录详情',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/collect',
            name: 'collect',
            component: collect,
            meta: {
                title: '收藏',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/orderManagement',
            name: 'orderManagement',
            component: orderManagement,
            meta: {
                title: '订单管理',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/orderDetail',
            name: 'orderDetail',
            component: orderDetail,
            meta: {
                title: '订单明细',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/orderSearch',
            name: 'orderSearch',
            component: orderSearch,
            meta: {
                title: '订单搜索',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/houseEarning',
            name: 'houseEarning',
            component: houseEarning,
            meta: {
                title: '房租收益',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/houseEarningDetail',
            name: 'houseEarningDetail',
            component: houseEarningDetail,
            meta: {
                title: '房租收益明细',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/account',
            name: 'account',
            component: account,
            meta: {
                title: '账户',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/accountDetail',
            name: 'accountDetail',
            component: accountDetail,
            meta: {
                title: '账户详情',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/accountGetOutMoney',
            name: 'accountGetOutMoney',
            component: accountGetOutMoney,
            meta: {
                title: '充提币',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/accountSelect',
            name: 'accountSelect',
            component: accountSelect,
            meta: {
                title: '充提币选择币种',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/scan',
            name: 'scan',
            component: scan,
            meta: {
                title: '扫描二维码',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/fastSelect',
            name: 'fastSelect',
            component: fastSelect,
            meta: {
                title: '充提币快速选择入口',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/fastGetMoney',
            name: 'fastGetMoney',
            component: fastGetMoney,
            meta: {
                title: '快速充值入口',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/fastOutMoney',
            name: 'fastOutMoney',
            component: fastOutMoney,
            meta: {
                title: '快速提币入口',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/rebate',
            name: 'rebate',
            component: rebate,
            meta: {
                title: '邀请返利',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/setting',
            name: 'setting',
            component: setting,
            meta: {
                title: '设置',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/contactUs',
            name: 'contactUs',
            component: contactUs,
            meta: {
                title: '联系我们',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/login',
            name: 'login',
            component: login,
            meta: {
                title: '登录',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/register',
            name: 'register',
            component: register,
            meta: {
                title: '注册',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/safetyCenter',
            name: 'safetyCenter',
            component: safetyCenter,
            meta: {
                title: '安全中心',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/c2c',
            name: 'c2c',
            component: c2c,
            meta: {
                title: 'c2c',
                navbarShow: true,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/phoneBinding',
            name: 'phoneBinding',
            component: phoneBinding,
            meta: {
                title: '绑定手机',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/phoneCheck',
            name: 'phoneCheck',
            component: phoneCheck,
            meta: {
                title: '查看手机',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/phoneUnbind',
            name: 'phoneUnbind',
            component: phoneUnbind,
            meta: {
                title: '解绑手机',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/emailCheck',
            name: 'emailCheck',
            component: emailCheck,
            meta: {
                title: '查看邮箱',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/emailUnbind',
            name: 'emailUnbind',
            component: emailUnbind,
            meta: {
                title: '解绑邮箱',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/emailBinding',
            name: 'emailBinding',
            component: emailBinding,
            meta: {
                title: '绑定邮箱',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/authentication',
            name: 'authentication',
            component: authentication,
            meta: {
                title: '身份验证',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/safetyVerificationCode',
            name: 'safetyVerificationCode',
            component: safetyVerificationCode,
            meta: {
                title: '手机验证',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/changeDealPassword',
            name: 'changeDealPassword',
            component: changeDealPassword,
            meta: {
                title: '修改交易密码',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/changePassword',
            name: 'changePassword',
            component: changePassword,
            meta: {
                title: '修改密码',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/changeSetPassword',
            name: 'changeSetPassword',
            component: changeSetPassword,
            meta: {
                title: '设置密码',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/activity',
            name: 'activity',
            component: activity,
            meta: {
                title: '我的活动',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/activityItem',
            name: 'activityItem',
            component: activityItem,
            meta: {
                title: '我的活动点击后的页面',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/order',
            name: 'order',
            component: order,
            meta: {
                title: '打新认购',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/congratulations',
            name: 'congratulations',
            component: congratulations,
            meta: {
                title: '打新认购成功订单页面',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/details',
            name: 'details',
            component: details,
            meta: {
                title: '订单详情',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        },
        {
            path: '/makenew',
            name: 'makenew',
            component: makenew,
            meta: {
                title: '打新详情',
                navbarShow: false,
                requireAuth: false,
                keepAlive: false
            }
        }




    ]
})